<!DOCTYPE html>
<html lang="en" class="no-js" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorator="admin/layout">
<head>
<title>保留ID设置</title>

</head>
<body>
<div layout:fragment="content">
	<div class="row">
		<div class="col-md-12">
			<div class="form">
				<form role="form" th:action="@{/admin/system/holdId/save}" th:object="${holdId}" id="holdIdForm" method="post" class="form-horizontal">
					<h4 class="form-section">兑奖说明：</h4>
					<input type="hidden" th:field="*{id}" />
					<div class="form-group" th:class="${#fields.hasErrors('startId')}? 'form-group has-error' : 'form-group'">
							<label class="control-label col-md-3">起始ID:<span class="required" aria-required="true"></span></label>							
							<div class="col-md-4">
								<input type="text" class="form-control" placeholder="起始ID" th:field="*{startId}"/>
							</div>
						</div>
						<div class="form-group"
								th:class="${#fields.hasErrors('content')}? 'form-group has-error' : 'form-group'">
								<label class="control-label col-md-3">可选值<span
									class="required" aria-required="true">* </span></label>
								<div class="col-md-4">
									<textarea class="form-control" rows="3" placeholder="可选值"
										th:field="*{content}" id="attribute_inputValue" name="attribute_inputValue"></textarea>
								</div>
							</div>
					<div class="form-actions fluid">
						<div class="col-md-offset-3 col-md-9">
							<button type="submit" class="btn blue" name="sub">提交</button>
						</div>
					</div>
				</form>		
			</div>
		</div>
		
	</div>
</div>	
</body>
</html>

 <script th:inline="javascript">
/*<![CDATA[*/
      $(document).ready(function(){

		 $("#holdIdForm").validate({
	         rules:{
	        	 startId:{
	            	 required:true,
	            	 number:true
	             }
	             
	             
	             
	              
	         },
	         messages:{
	        	 startId:{
	                 required:"请输入名称"
	             }
	             
	         }
	         
	      });
		 
	  });
/*]]>*/
</script>